/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Server;

/**
 *
 * @author d_frEak
 */
public class PeerInfo {
    String peer;
    int port;

    PeerInfo()
    {
        peer="";
        port=0;
    }

    PeerInfo(String input)
    {
        SetPeers(input);
    }

    public String GetPeers()
    {
        String retval=peer+":"+port;
        return retval;
    }

    public void SetPeers(String input)
    {
        String[] splitString=input.split(":");
        peer=splitString[0];
        port=Integer.valueOf(splitString[1]);
    }
}
